//
//  YsUploadManager+Tools.h
//  YsCloudFileManageSDK
//
//  Created by 宋宏康 on 2020/3/6.
//


#import "YsUploadManager.h"
#import "YsCloudFileManagerDelegate.h"


@interface YsUploadManager (Tools) <YsCloudFileManagerDelegate>


/// 开始上传
/// @param uploadModel 上传模型
- (void)beginUploadWithUploadModel:(YsDocUploadModel *)uploadModel;

/// 上传对外暴露的接口
/// @param uploadPath 上传文件的地址
/// @param para 参数
/// @param requestMethod 请求方式
/// @param lastPathComponent 上传文件类型
- (void)uploadWithPath:(NSString *)uploadPath
             withPara:(NSString *)para
           withMethod:(NSString *)requestMethod
 withLastPathComponent:(NSString *)lastPathComponent;


/// 上传对外暴露的接口
/// @param image 上传的图片
/// @param para 参数
/// @param requestMethod 请求方式
/// @param lastPathComponent 上传文件类型
- (void)uploadWithImage:(UIImage *)image
             withPara:(NSString *)para
           withMethod:(NSString *)requestMethod
 withLastPathComponent:(NSString *)lastPathComponent;

/// 挂起任务
/// @param model 上传任务的模型
- (void)suspendTaskWithUploadModel:(YsDocUploadModel *)model;

/// 开始任务
/// @param model 上传任务的模型
- (void)resumeTaskWithUploadModel:(YsDocUploadModel *)model;


/// 取消任务
/// @param model 上传任务的模型
- (void)cancelTaskWithUploadModel:(YsDocUploadModel *)model;
@end

